import type { RouterProps } from 'react-router-dom';
import Info from '@/view/task/info';
import React, { lazy } from 'react';
import type { routesType } from '@/router/router';

const routes: routesType[] = [
  // {
  //   redirect: true,
  //   from: '/task',
  //   to: '/task/info',
  //   exact: true, Info
  // },
  {
    path: '/task/info',
    name: 'task-info',
    component: lazy(
      () => import(/* webpackChunkName:"Task" */ '../view/task/info')
    ),
    meta: {},
    children: [],
  },
  {
    redirect: true,
    to: '/task',
  },
];

export default routes;
